package orz.mikeneck.android.hello;

import android.app.Activity;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class ButtonAction implements ActivityInjection {

	private TextView edit;

	private TextView text;

	@Override
	public void onClick(View v) {
		text.setText("Hello," + edit.getText());
	}

	@Override
	public void setActivity(Activity activity) {
		edit = (EditText) activity.findViewById(R.id.edit);
		text = (TextView) activity.findViewById(R.id.edited_message);
	}

}
